import request from '@/utils/request'

// 查询费用申请单信息列表
export function listApp(query) {
  return request({
    url: '/project/app/list',
    method: 'get',
    params: query
  })
}

// 查询费用申请单信息详细
export function getApp(appId) {
  return request({
    url: '/project/app/' + appId,
    method: 'get'
  })
}

// 新增费用申请单信息
export function addApp(data) {
  return request({
    url: '/project/app',
    method: 'post',
    data: data
  })
}

// 修改费用申请单信息
export function updateApp(data) {
  return request({
    url: '/project/app',
    method: 'put',
    data: data
  })
}

// 删除费用申请单信息
export function delApp(appId) {
  return request({
    url: '/project/app/' + appId,
    method: 'delete'
  })
}
